package com.uyayo.ucenter.service;

import java.util.List;

import com.uyayo.framework.common.exception.EmailMultipleException;
import com.uyayo.framework.common.exception.PhoneMultipleException;
import com.uyayo.framework.common.exception.UserMultipleException;
import com.uyayo.framework.message.model.Result;
import com.uyayo.framework.pagehelper.pojo.PageBean;
import com.uyayo.ucenter.entity.Member;
import com.uyayo.ucenter.entity.MemberState;
import com.uyayo.ucenter.model.MemberCondition;

public interface MemberService {

	Member getMemberById(Long id);

	List<Member> selectMember(MemberCondition memberCondition);

	Member getMemberByEmail(String email);

	PageBean<Member> selectMemberByPaging(PageBean<Member> pageBean, MemberCondition memberCondition);

	int saveMember(Member Member,MemberState memberState) throws EmailMultipleException, PhoneMultipleException, UserMultipleException;

	Member getMemberByPhone(String phone);

	int updateMember(Member user) throws EmailMultipleException, PhoneMultipleException, UserMultipleException;

	int deleteMember(Long id);

	Result saveMemberGroupRelation(String ids,Long member);

	Member  getMemberByUsername(String username);

}
